from xml.dom import minidom


class ReadXml():

    def readXml(self, file, oneTagName, twoTagName):
        # note
        root = minidom.parse(file)
        # note的儿子：add，reduce
        one = root.getElementsByTagName(oneTagName)[0]
        two = one.getElementsByTagName(twoTagName)[0].firstChild.data
        return two
